package com.lijian.controller;

import com.lijian.model.BaseStationCoordinate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 李健
 * @date 2021/03/03
 */
@Controller
@RequestMapping
public class IndexController {

    @Autowired
    private BaseStationCoordinate baseStationCoordinate;

    @GetMapping
    public String Index(Model model){
        //基站坐标
        model.addAttribute("base", baseStationCoordinate);
        return "index";
    }
}
